-- GENERATED SPELL FOR [Lord Skwol] --


function spell0_15305(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_15305', 602, 1)
end

function spell1_15305(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(25053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15305', 30000, 1)
end

function Sorts_15305(pUnit, Event)
local choix_sorts_15305 = math.random(0, 1)
if choix_sorts_15305 == 0 then
pUnit:RegisterEvent('spell0_15305', 1, 1)
end
if choix_sorts_15305 == 1 then
pUnit:RegisterEvent('spell1_15305', 1, 1)
end
end

function mob15305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15305', math.random(1500, 3000), 1)
end

function mob15305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15305, 1, 'mob15305_Action')
RegisterUnitEvent(15305, 2, 'mob15305_Leave')
RegisterUnitEvent(15305, 3, 'mob15305_Kill')
RegisterUnitEvent(15305, 4, 'mob15305_Die')
